# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=komikku
pkgver=1.60.0
pkgrel=0
pkgdesc="manga reader for GNOME"
url="https://codeberg.org/valos/Komikku"
arch="noarch"
license="GPL-3.0-only"
depends="
	libadwaita
	libnotify
	py3-beautifulsoup4
	py3-brotli
	py3-colorthief
	py3-dateparser
	py3-emoji
	py3-gobject3
	py3-keyring
	py3-lxml
	py3-magic
	py3-natsort
	py3-piexif
	py3-pillow
	py3-pillow_heif
	py3-pure_protobuf
	py3-rarfile
	py3-requests
	py3-unidecode
	webkit2gtk-6.0
	"
makedepends="
	blueprint-compiler-dev
	cmake
	desktop-file-utils
	gobject-introspection-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
subpackages="$pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/valos/Komikku/archive/v$pkgver.tar.gz"
builddir="$srcdir/komikku"

build() {
	abuild-meson build

	ninja -C build
}

check() {
	meson test -C build --print-errorlog
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}

sha512sums="
38763742647554b28010d2a29f4af85f99716b582b274621b21872c168e6caf38b781d08eacfa3eea8485c189ed599afe20a31a0189670bdb1222bf2d5a1b4e2  komikku-1.60.0.tar.gz
"
